package gao.wsw.springsecurity.controller;

import gao.wsw.springsecurity.entity.SysPermissionRole;
import gao.wsw.springsecurity.service.SysPermissionRoleService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


//权限角色表(SysPermissionRole)表控制层

@RestController
@RequestMapping("sysPermissionRole")
public class SysPermissionRoleController {

    //服务对象
    @Resource
    private SysPermissionRoleService sysPermissionRoleService;


    //通过主键查询单条数据

    @GetMapping("selectOne/{id}")
    public SysPermissionRole selectOne(@PathVariable(name="id") Long id) {
        return this.sysPermissionRoleService.queryById(id);
    }

}